<ui:composition xmlns="http://www.w3.org/1999/xhtml"
    xmlns:ui="http://java.sun.com/jsf/facelets"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:p="http://primefaces.org/ui"
	template="/WEB-INF/templates/template.xhtml">
    <ui:define name="content">
        <h:form id="displayForm" align="center">
		
		<div align="center">
		<p:panel>
            <f:facet name="header">  
                <h:outputText value="Displaying User #{userBean.selectedUser.firstName}"  />
            </f:facet> 
            <h:panelGrid id="display" columns="2" cellpadding="4"> 
  			<br />
            <h:outputText value="User Number: " />  
            <h:outputText value="#{userBean.selectedUser.pharmaUserId}" />  
  
            <h:outputText value="First Name: " />  
            <h:outputText value="#{userBean.selectedUser.pharmaUserId}" />  
  
            <h:outputText value="Last Name:" />  
            <h:outputText value="#{userBean.selectedUser.lastName}" />  
  
            <h:outputText value="Middle Initial: " />  
            <h:outputText value="#{userBean.selectedUser.middleInitial}" /> 
            
            <h:outputText value="Phone Number: " />  
            <h:outputText value="#{userBean.selectedUser.userPhone}" />
            
            <h:outputText value="Job Id: " />  
            <h:outputText value="#{userBean.selectedUser.jobId}" />  
  
            <h:outputText value="User Type: " />  
            <h:outputText value="#{userBean.selectedUser.userType}" />  
  
            <h:outputText value="User Status: " />  
            <h:outputText value="#{userBean.selectedUser.userStatus}" />  
  
            <h:outputText value="Provider Id: " />  
            <h:outputText value="#{userBean.selectedUser.providerId}" /> 
            
            <h:outputText value="Email: " />  
            <h:outputText value="#{userBean.selectedUser.userEmail}" />  
  
            <h:outputText value="Address: " />  
            <h:outputText value="#{userBean.selectedUser.userAddress}" />  
  
            <h:outputText value="City: " />  
            <h:outputText value="#{userBean.selectedUser.userCity}" />  
  
            <h:outputText value="State: " />  
            <h:outputText value="#{userBean.selectedUser.userState}" /> 
            
            <h:outputText value="Zip:" />  
            <h:outputText value="#{userBean.selectedUser.userZip}" />  
  
            <h:outputText value="Country: " />  
            <h:outputText value="#{userBean.selectedUser.userCountry}" />  
  
            <h:outputText value="Last Modified: " />  
            <h:outputText value="#{userBean.selectedUser.lastModified}" />  
  
            <h:outputText value="User Last modified: " />  
            <h:outputText value="#{userBean.selectedUser.userLastModified}" />  
        </h:panelGrid>  
        <br />
        <p:commandButton value="Cancel" onclick="location.href='userhome.xhtml'"/>		
		</div>
		</p:panel>
		</h:form>
    </ui:define>
</ui:composition>
